package com.wulin.learning.设计模式.简单工厂;

public class Client {
    public static void main(String[] args) {
        Product product;
        product = Factory.getProduct("B"); //通过工厂类创建产品对象
        product.methodA();
        product.methodB();
    }
}
